goto BEGIN

:BEGIN
go generate && (echo "ok") || goto FAILED
go build -i -tags tempdll  -ldflags="-H windowsgui -linkmode internal -s -w" -o ./data/crawler.exe && (echo "ok") || goto FAILED
upx -9 ./data/crawler.exe && (echo "ok") || goto FAILED

goto END

:FAILED
echo "failed"
:END
echo "end"


